package com.hunlian.makelove.bean;

import java.io.Serializable;


/**
 * 用户实体类
 * @author jiangshunbin
 *
 */
public class UserBean implements Serializable{
	private static final long serialVersionUID = SerialIDDef.UserBean;
	
	private String userId;
	private String userName;  //用户昵称
	private String email;
	private String tel; //手机号(登录账户)
	private String userStatus; //账号状态：1:正常， 2：禁用， 3：冻结
	private String memo; //备注
	private String accessToken;
	private String headImg; //用户头像url
	private String age;
	private String gender;  //男，女
	private String hasUserId;//服务器是否存在此用户的userId,没有为false
	
	
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getHasUserId() {
		return hasUserId;
	}

	public void setHasUserId(String hasUserId) {
		this.hasUserId = hasUserId;
	}

	public String toString(){
		return "UserBean {userId = " + getUserId() + ", userName = " + getUserName() + 
				", email = " + getEmail() + ", tel = " + getTel() + 
				", userStatus = " + getUserStatus() + ", memo = " + getMemo() + 
				", accessToken = " + getAccessToken() + ", headImg = " + getHeadImg() + "}";
	}
	
	public String toJsonString(){
		return "{\"userId\":\"" + getUserId() + "\", \"userName\":\"" + getUserName() +
				"\", \"email\":\"" + getEmail() + "\", \"tel\":\"" + getTel() + 
				"\", \"userStatus\":\"" + getUserStatus() + "\", \"memo\":\"" + getMemo() + 
				"\", \"accessToken\":\"" + getAccessToken() + "\", \"headImg\":\"" + getHeadImg() + "\"}";
	}
}
